#include <iostream>

using namespace std;

int main()
{
    int n = 0, x = 0, y = 0, sum = 0;
    cin >> n >> x >> y;
    for (int i = 0; i < n; ++i)
    {
        int temp = 0;
        cin >> temp;
        if (temp > y)
            sum += 3;
    }
    cout << sum << endl;
    return 0;
}